
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="<?php echo base_url('application/public/bootstrap-3.3.5/css/bootstrap.min.css');?>" rel="stylesheet">
	<link href="<?php echo base_url('application/public/css/register.css');?>" rel="stylesheet"/>
	<title>修改其他用户信息</title>
</head>

<body>
<br/><br/>
<form class="form-horizontal" action="<?php echo base_url('uc/upOthers?id='.$userId);?>" method="post"">
<div class="form-group">
	<label for="username" class="col-sm-2 control-label">姓名 :</label>
	<div class="col-sm-10">
		<input type="text" class="form-control" id="username" name="username"
		       value="<?php echo is_null(set_value('username'))?set_value('username'):$username;?>"/>
		<br/><span id="username_err"><?php echo form_error('username');?></span>
	</div>
</div>

<div class="form-group">
	<label class="col-sm-2 control-label">密码 :</label>
	<div id="select-group" class="col-sm-12">
		<select name="pwd" class="form-control">
			<option value="<?php echo isset($pwd)?$pwd:'';?>"><?php echo isset($pwd)?'默认不变':'未获取到该账户的密码';?></option>
			<option value="123456">123456</option>
		</select>
		<br/><span id="pwd_err"><?php echo form_error('pwd');?></span>
	</div>
</div>

<div class="form-group">
	<label for="radio-group" class="col-sm-2 control-label">性别 :</label>
	<div id="radio-group" class="col-sm-10">
		<label class="radio-inline">
			<input type="radio" name="sex" id="inlineRadio1" value="男"
				<?php echo is_null(set_value('sex'))?(set_value('sex')=='男'?'checked':''):(($sex=='男')?'checked':'');?>/> 男
		</label>
		<label class="radio-inline">
			<input type="radio" name="sex" id="inlineRadio2" value="女"
				<?php echo is_null(set_value('sex'))?(set_value('sex')=='女'?'checked':''):(($sex=='女')?'checked':'');?>/> 女
		</label>
		<label class="radio-inline">
			<input type="radio" name="sex" id="inlineRadio3" value="XXY" disabled/> XXY
		</label>
		<br/><br/><span id="sex_err"><?php echo form_error('sex');?></span>
	</div>
</div>

<div class="form-group">
	<label class="col-sm-2 control-label">生日 :</label>
	<div id="" class="col-sm-10">
		<input placeholder=" 请输入日期" name="birthday" id="birthday" value=" <?php echo $birthday;?>" class="laydate-icon" onclick="laydate({elem: '#birthday'});"/>
		<br/><br/><span id="birthday_err"><?php echo form_error('birthday');?></span>
	</div>
</div>

<div class="form-group">
	<label class="col-sm-2 control-label">角色 :</label>
	<div id="select-group" class="col-sm-12">
		<select name="authority" class="form-control">
			<option value="0">普通用户</option>
			<option value="1">管理员</option>
		</select>
		<br/><span id="authority_err"><?php echo form_error('authority');?></span>
	</div>
</div>

<div class="form-group">
	<div class="col-sm-offset-2 col-sm-10">
		<button type="submit" class="btn btn-default">提交</button>
		<button type="reset" class="btn btn-default">重置</button> &nbsp;&nbsp;
		<a href="<?php echo base_url('firstPage/userList')?>">返回</a>
	</div>
</div>
</form>

</body>
<script type="text/javascript" src="<?php echo base_url('application/public/js/jquery-2.1.4.min.js');?>"></script>
<script type="text/javascript" src="<?php echo base_url('application/public/bootstrap-3.3.5/js/bootstrap.min.js');?>"></script>
<script type="text/javascript" src="<?php echo base_url('application/public/laydate/laydate.js');?>"></script>
</html>

